package com.tai.design.state.before;

/**
 * The interface Lift.
 *
 * @version v1.0
 * @ClassName: ILift
 * @Description: 电梯接口
 * @Author: taylor
 */
public interface ILift {

    /**
     * The constant OPENING_STATE.
     */
//定义四个电梯状态的常量
    int OPENING_STATE = 1;
    /**
     * The constant CLOSING_STATE.
     */
    int CLOSING_STATE = 2;
    /**
     * The constant RUNNING_STATE.
     */
    int RUNNING_STATE = 3;
    /**
     * The constant STOPPING_STATE.
     */
    int STOPPING_STATE = 4;

    /**
     * Sets state.
     *
     * @param state the state
     */
//设置电梯状态的功能
    void setState(int state);

    /**
     * Open.
     */
//电梯操作功能
    void open();

    /**
     * Close.
     */
    void close();

    /**
     * Run.
     */
    void run();

    /**
     * Stop.
     */
    void stop();
}
